import { ApiProperty } from '@nestjs/swagger';

export class CreateMessageDto {
  @ApiProperty({ description: '会话ID' })
  sessionId: number;

  @ApiProperty({ description: '发送者类型', enum: ['user', 'agent'] })
  senderType: 'user' | 'agent';

  @ApiProperty({ description: '用户ID', required: false })
  userId?: number;

  @ApiProperty({ description: '客服ID', required: false })
  agentId?: number;

  @ApiProperty({ description: '消息内容' })
  content: string;
} 